package com.itheima.chapter01.method;
/*
    重载
 */
public class demoOverload {
    public static void main(String[] args) {
        int a=10;
        int b=20;
        System.out.println(compater(a,b));
    }
    public static boolean compater(int a,int b){
        return a==b;
    }
    public static boolean compater(byte a,byte b){
        return a==b;
    }
    public static boolean compater(short a,short b){
        return a==b;
    }
    public static boolean compater(long a,long b){
        return a==b;
    }
    public static boolean compater(double a,double b){
        return a==b;
    }
}
